#include "Contact.h"

Contact::Contact(const string city, const string phoneNumber, int zipcode) 
	: zipcode(zipcode)
{
	this->city = city;
	this->phoneNumber = phoneNumber;
}


ostream& operator<<(ostream& os,const Contact& e)
{
	os << "Contact={City=" << e.city << ", Phone=" << e.phoneNumber << ", ZipCode=" << e.zipcode << "}";

	return os;
}

bool Contact::operator==(const Contact& other) const
{
	if (other.city			== city			&&
		other.phoneNumber	== phoneNumber	&&
		other.zipcode		== zipcode)
	{
		return true;
	}

	return false;
}

void Contact::operator=(const Contact& other)
{
	city		=	other.city;
	phoneNumber =	other.phoneNumber;
	zipcode		=	other.zipcode;
}

Contact::~Contact()
{
}